export default {
  createLecturer:{//创建讲师
    url: '/mall/lecturer/create',
    require:['token','clientid']//name、gender、phone(选)、email(选)、avatarUrl(选)、description(选)、birthday(选)、data(选)
  },
  updateLecturer:{//更新讲师
    url: '/mall/lecturer/update',
    require:['token','clientid','id']//name(选)、gender(选)、phone(选)、email(选)、avatarUrl(选)、description(选)、birthday(选)、data(选)
  },
  getLecturer:{//获取讲师
    url: '/mall/lecturer/get',
    require:['token','clientid','id']
  },
  getLecturerList:{//获取讲师列表
    url: '/mall/lecturer/list',
    require:['token','clientid']
  },
  delLecturer:{//删除讲师
    url: '/mall/lecturer/delete',
    require:['token','clientid','id']
  },
  //course
  createCourse:{//创建课程
    url: '/mall/course/create',
    require:['token','clientid']//departmentId、title、description、start、end、min、max、periods(选，数组字符串，参数见/period/create)、data(选)
  },
  updateCourse:{//更新课程
    url: '/mall/course/update',
    require:['token','clientid','id']//title(选)、description(选)、start(选)、end(选)、min(选)、max(选)、data(选)
  },
  getCourse:{//获取课程
    url: '/mall/course/get',
    require:['token','clientid']//id，sn
  },
  getCourseList:{//获取课程列表
    url: '/mall/course/list',
    require:['token','clientid']//page、size(选)、departmentId、start(选)、end(选)、state(选)、key(选)
  },
  delCourse:{//删除课程
    url: '/mall/course/delete',
    require:['token','clientid','id']
  },
  startCourse:{//开始课程
    url: '/mall/course/start',
    require:['token','clientid','id']
  },
  getCourseListByCustomer:{//根据customer获取课程列表
    url: '/mall/course/listByCustomer',
    require:['token','clientid']//page、size(选)、customerId(选)、customerName(选)
  },
  getCourseListByCurrCustomer:{//当前customer获取自身课程列表
    url: '/mall/course/listByCurrCustomer',
    require:['token','clientid']//page、size(选)
  },
//  课时
  createPeriod:{//创建课时
    url: '/mall/period/create',
    require:['token','clientid']//courseId、title、description、start、end、lecturer、address、data(选)
  },
  updatePeriod:{//更新课时
    url: '/mall/period/update',
    require:['token','clientid','id']//title(选)、description(选)、start(选)、end(选)、lecturer(选)、address(选)、data(选)
  },
  getPeriod:{//获取课时
    url: '/mall/period/get',
    require:['token','clientid','id']
  },
  getPeriodList:{//获取课时列表
    url: '/mall/period/list',
    require:['token','clientid']//page、size(选)、departmentId、start(选)、end(选)、state(选)、key(选)
  },
  delPeriod:{//删除课时
    url: '/mall/period/delete',
    require:['token','clientid','id']
  },
//  learner
  createLearner:{//创建学员和课时学员信息
    url: '/mall/learner/create',
    require:['token','clientid']//courseId、customerId、data(选)
  },
  createLearnerByJob:{//根据job创建学员和课时学员信息，
    url: '/mall/learner/createByJob',
    require:['token','clientid']//jobId、data(选)
  },
  updateLearner:{//创建学员和课时学员信息
    url: '/mall/learner/update',
    require:['token','clientid']//id,data
  },
  getLearner:{//获取学员
    url: '/mall/learner/get',
    require:['token','clientid','id']
  },
  getLearnerList:{//获取学员列表
    url: '/mall/learner/list',
    require:['token','clientid']//page、size(选)、courseId(选)、key(选)
  },
  getPeriodLearnerInfo:{//获取课时学员信息(签到表)
    url: '/mall/periodLearnerInfo/get',
    require:['token','clientid']//periodId、learnerId
  },
  signInPeriod:{//课时签到  用在小程序，当前用户签到的
    url: '/mall/periodLearnerInfo/signIn',
    require:['token','clientid']//periodId
  },
  signInByAdmin:{//课时签到  用在小程序，当前用户签到的
    url: '/mall/periodLearnerInfo/signInByAdmin',
    require:['token','clientid']//periodId,learnerId/customerId
  },
  updatePeriodLearnerInfo:{//更新课时学员信息(签到表)
    url: '/mall/periodLearnerInfo/update',
    require:['token','clientid']//periodId,learnerId、score(选)、data(选)
  },
  getPeriodLearnerInfoList:{//获取课时学员信息列表
    url: '/mall/periodLearnerInfo/list',
    require:['token','clientid']//page、size(选)、periodId(选)、learnerId(选)、courseId(选)、key(选)、start(选)、end(选)
  },

  //courseDefine
  createCourseDefine:{//创建课程定义，参数：departmentId、title、description、data(选)、sn(选)
    url: '/mall/courseDefine/create',
    require:['token','clientid']
  },
  updateCourseDefine:{//更新课程定义，参数：id、title(选)、description(选)、data(选)、sn(选)
    url: '/mall/courseDefine/update',
    require:['token','clientid']
  },
  getCourseDefine:{//获取课程定义，参数：id/sn
    url: '/mall/courseDefine/get',
    require:['token','clientid']
  },
  getCourseDefineList:{//获取课程定义列表，参数：page、size(选)、departmentId、enabled(选)、key(选)
    url: '/mall/courseDefine/list',
    require:['token','clientid']
  },
  delCourseDefine:{//删除课程定义，参数：id
    url: '/mall/courseDefine/delete',
    require:['token','clientid','id']
  },
  //memberCourse
  createMemberCourse:{//创建用户课程，参数：memberId、courseDefineId、data(选)
    url: '/mall/memberCourse/create',
    require:['token','clientid']
  },
  addInfoMemberCourse:{//完善用户课程信息，参数：id、customerId、classId、data(选)
    url: '/mall/memberCourse/addInfo',
    require:['token','clientid']
  },
  getMemberCourse:{//获取用户课程，参数：id
    url: '/mall/memberCourse/get',
    require:['token','clientid']
  },
  getMemberCourseList:{//获取用户课程列表，参数：page、size(选)、courseDefineId(选)、departmentId(选)、memberId(选)、classId(选)、finished(选)、key(选)
    url: '/mall/memberCourse/list',
    require:['token','clientid']
  },
  //class
  createClass:{//创建班级，参数：courseDefineId、title、description、start、end、min、max、periods(选，数组字符串，参数见/period/create)、data(选)、sn(选)
    url: '/mall/class/create',
    require:['token','clientid']
  },
  updateClass:{//更新班级，参数：id、title(选)、description(选)、start(选)、end(选)、min(选)、max(选)、data(选)、sn(选)
    url: '/mall/class/update',
    require:['token','clientid']
  },
  getClass:{//获取班级，参数：id
    url: '/mall/class/get',
    require:['token','clientid']
  },
  startClass:{//班级开课，参数：id
    url: '/mall/class/start',
    require:['token','clientid']
  },
  getClassList:{//获取班级列表，参数：page、size(选)、courseDefineId(选)、departmentId(选)、start(选)、end(选)、status(选)、key(选)
    url: '/mall/class/list',
    require:['token','clientid']
  },
  delClass:{//删除班级，参数：id
    url: '/mall/class/delete',
    require:['token','clientid','id']
  },

  adminScan:{//工作人员扫二维码进行课时签到，参数：classId、customerId(选)、userToken
    url: '/mall/customerPeriodInfo/adminScan/signIn',
    require:['token','clientid']
  },

}
